package com.example.springboot.controller.paramteranotation;

import com.example.springboot.config.anotation.parameterAnotation.UserParam;
import com.example.springboot.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/5/9 16:16
 */
@RestController
public class UserParamController {
    @GetMapping("/param")
    public User param(@UserParam User user) {
        System.out.println(user);
        return user;
    }
}
